/**
 * @author zhaoren
 * @version 1.0
 * @description 装饰类，{@link Finery ->}/{@link Decorator} 就是{@link Person}/{@link Component}的装饰对象
 * @date 2020/7/28 11:42
 **/
public abstract class Finery extends Person{

    protected Person component;

    public void decorate(Person component){
        this.component = component;
    }

    @Override
    public void show() {
        if (component != null){
            component.show();
        }
    }
}
